package nancal.mp.db.mongo.table

import java.io.*
import nbcp.base.db.*
import nbcp.base.comm.*
import nbcp.base.extend.*
import nbcp.base.enums.*
import nbcp.base.utils.*
import nbcp.myoql.db.*
import nbcp.myoql.db.comm.*
import nbcp.myoql.db.enums.*
import nbcp.myoql.db.mongo.*
import nbcp.myoql.db.mongo.base.*
import nbcp.myoql.db.mongo.component.*
import org.slf4j.LoggerFactory
import org.springframework.stereotype.*



class DeployItemMeta(private val parentPropertyName: String): MongoColumnName() {
    constructor(value: MongoColumnName) : this(value.toString()) {}
    val gitData = GitDataMeta(mongoColumnJoin(this.parentPropertyName, "gitData"))
    /**
     * git分支
     */
    @nbcp.base.db.annotation.Cn(value = """git分支""")
    val gitBranch = mongoColumnJoin(this.parentPropertyName, "gitBranch")
    /**
     * 构建文件夹
     */
    @nbcp.base.db.annotation.Cn(value = """构建文件夹""")
    val buildFolder = mongoColumnJoin(this.parentPropertyName, "buildFolder")
    val deployLog = JenkinsLogMeta(mongoColumnJoin(this.parentPropertyName, "deployLog"))
    override fun toString(): String {
        return mongoColumnJoin(this.parentPropertyName).toString()
    }
}

